package boot.spring.service.impl;

import boot.spring.dao.MemberInfoDetailRepository;
import boot.spring.po.MemberInfoDetail;
import org.springframework.stereotype.Service;

/**
 * @Create: 2021/7/18 14:17
 */
@Service
public class MemberInfoDetailServiceImpl {


    private MemberInfoDetailRepository memberInfoDetailRepository;

    public MemberInfoDetailServiceImpl(MemberInfoDetailRepository memberInfoDetailRepository) {
        this.memberInfoDetailRepository = memberInfoDetailRepository;
    }


    public MemberInfoDetail add(MemberInfoDetail memberInfoDetail) {

        MemberInfoDetail save = memberInfoDetailRepository.save(memberInfoDetail);
        System.out.println("save = " + save);
        return save;
    }
}
